package com.dayuanit.dy17.mix.aop;

import com.dayuanit.dy17.mix.aop.service.IUserService;
import com.dayuanit.dy17.mix.aop.service.impl.PayServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test2 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-ioc.xml");

//        IUserService userService = context.getBean(IUserService.class);
//        userService.rigster();

        PayServiceImpl payService = context.getBean(PayServiceImpl.class);
        payService.pay();


    }
}
